Skip to content

Phase 1a.4: delete the --rr-* alias block (zero visual delta) - #527

Merged
pftg merged 2 commits into
masterfrom
phase-1a4-tags-ink
Aug 21, 2026
Merged

Phase 1a.4: delete the --rr-* alias block (zero visual delta)#527
pftg merged 2 commits into
masterfrom
phase-1a4-tags-ink

Conversation

@pftg

@pftg pftg commented Aug 21, 2026

Copy link
Copy Markdown
Member

The deletion Phase 1a.4 owns. Zero visual delta, and that is guaranteed by
construction rather than hoped for.

What landed

All 18 --rr-* references migrated to canonical names, then the alias block
removed from foundations/css-variables.css:

File Refs
pages/blog-list.css 9
single-post.css 6
pages/blog-single.css 3

Each alias was --rr-X: var(--X) — an exact 1:1 indirection — so removing the
hop cannot change a computed value.

The precondition was re-run, not read

The rule is to re-grep at the moment of deletion rather than trust a written
inventory. That mattered here: an inventory of these same consumers was wrong
twice in one review — it omitted a live line and named a file carrying zero
references.

before:  grep -rn 'var(--rr-' themes/beaver/assets/css/  →  18
after:   grep -rn 'var(--rr-' themes/beaver/assets/css/  →   0
then:    delete the block

single-post.css belongs to the course bundle as well as the blog, so
deleting on the strength of that inventory would have broken styling on both.
Re-running the check turned a real risk into a non-event.

Gates

  • bin/test34 runs, 87 assertions, 0 failures, [snap_diff] 53 screenshots compared, no failures. No baseline moved, as predicted.
  • bin/hugo-build clean
  • okf_validate .okf exits 0, conformant; --strict exits 1, as it does
    on this bundle by design — reported, not called green
  • macOS only; Linux baselines belong to the parallel PR and were not touched

Scope note

1a.4's other half — "footer onto surface-ink" — is blocked and re-scoped;
see #526. It is not a footer change: moving it leaves adjacent dark surfaces at
pure black, and fixing those requires migrating dividers and the dark sections
they abut together across 7+ page bundles.

🤖 Generated with Claude Code

pftg and others added 2 commits August 21, 2026 04:04
The deletion Phase 1a.4 owns. Its precondition was that all three consumers stop
using the alias names, and the rule is to re-grep at deletion time rather than
trust a written inventory - which mattered, because an earlier inventory of
these consumers was wrong twice in one review.

Measured before: `grep -rn 'var(--rr-' themes/beaver/assets/css/` returned 18
across pages/blog-list.css (9), single-post.css (6) and pages/blog-single.css
(3). Migrated each to its canonical name, then re-grepped: 0. Only then deleted
the alias block from foundations/css-variables.css.

Zero visual delta is guaranteed by construction, not hoped for: every alias was
defined as `var(--rr-X: var(--X))`, an exact 1:1 indirection, so removing the
hop cannot change a computed value. The suite agrees - 53 screenshots compared,
no failures, no baseline moved.

This also removes the trap recorded in design/site-palette.md: the aliases were
consumed by single-post.css, which belongs to the COURSE bundle as well as the
blog, so deleting the block while any consumer remained would have broken
styling on both. That risk is now gone rather than documented.

Gate: bin/test - 34 runs, 87 assertions, 0 failures, [snap_diff] 53 screenshots
compared, no failures. bin/hugo-build clean. macOS only; Linux baselines belong
to the parallel PR and were not touched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
design/site-palette.md updated from "the --rr-* aliases die next in 1a.4" to
gone: 18 references migrated, block removed, zero visual delta by construction.

Kept the part that outlives the deletion - verify a precondition by RUNNING the
check, never by reading what the check returned last time. A written inventory
of those exact consumers was wrong twice in one review (omitted a live line,
named a file with zero references), and single-post.css belongs to the COURSE
bundle as well as the blog, so deleting on the doc's word would have broken
both. Re-grepping at the moment of deletion turned that from a risk into a
non-event: 18 -> 0 -> delete.

Log also records the re-scope: "footer onto surface-ink" is not a footer
change, and its remaining half needs dividers and adjacent dark sections
migrated together across 7+ bundles.

Timestamp anchored to a measured `date -u` (2026-08-21T02:05:49Z).
Gates: okf_validate .okf exits 0 conformant; --strict exits 1 as it does on this
bundle by design. bin/hugo-build clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 327a1ed2-d6a9-4d1a-8f00-1bef20f64e3e


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pftg
pftg merged commit bb018af into master Aug 21, 2026
4 checks passed
@pftg
pftg deleted the phase-1a4-tags-ink branch August 21, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant